package Month09.day0902;

class Dog {
    public String name;  //定义这个狗的名字
    public String color;  //定义它的颜色

    public void barks(){
        System.out.println(name + ":汪汪汪~~~~");
    }//大黄基本吼叫技能

    public void wags(){
        System.out.println(name + ":摇尾巴");
    }//大黄撒娇基本技能

    public void fight(){
        System.out.println(name + ":开始呼喊狗伙伴准备干架");
    }

    public static void main(String[] args) {
        Dog myPet = new Dog();
        myPet.name = "大黄";
        myPet.color = "土黄色";

        myPet.barks();
        myPet.wags();
        myPet.fight();
    }
}
